﻿<UserControl x:Class="WAPA.Client.PendingOverlay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Background="Red">
    <Grid>
        <Grid x:Name="pendingDeploymentsOverlay" Grid.RowSpan="2" Visibility="Hidden" Background="#DDFFFFFF" >
            <Rectangle Width="100" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Rectangle.Fill>
                    <VisualBrush TileMode="None">
                        <VisualBrush.Visual>
                            <Grid  Width="200" Height="150">
                                <Grid x:Name="radar">
                                    <Grid.LayoutTransform>
                                        <RotateTransform x:Name="animationTarget" CenterX="25" CenterY="25" Angle="0" />
                                    </Grid.LayoutTransform>
                                    <Grid.Resources>
                                        <Storyboard  x:Key="spinAnimation">
                                            <DoubleAnimation  x:Name="animation" Storyboard.TargetName="animationTarget" Storyboard.TargetProperty="Angle" By="360" Duration="0:0:2"                                AutoReverse="False"                               RepeatBehavior="Forever" />
                                        </Storyboard>
                                    </Grid.Resources>
                                    <Grid.Background>
                                        <DrawingBrush Stretch="Uniform">
                                            <DrawingBrush.Drawing>
                                                <GeometryDrawing>
                                                    <GeometryDrawing.Brush>
                                                        <RadialGradientBrush>
                                                            <GradientStop Color="#01BCE5" Offset="0.0" />
                                                            <GradientStop Color="Transparent" Offset="1.0" />
                                                        </RadialGradientBrush>
                                                    </GeometryDrawing.Brush>
                                                    <GeometryDrawing.Geometry>
                                                        <GeometryGroup>
                                                            <RectangleGeometry Rect="0,0,50,50" />
                                                            <RectangleGeometry Rect="50,50,50,50" />
                                                        </GeometryGroup>
                                                    </GeometryDrawing.Geometry>
                                                </GeometryDrawing>
                                            </DrawingBrush.Drawing>
                                        </DrawingBrush>
                                    </Grid.Background>
                                </Grid>
                            </Grid>
                        </VisualBrush.Visual>
                    </VisualBrush>
                </Rectangle.Fill>
            </Rectangle>
            <TextBlock HorizontalAlignment="Center" x:Name="overLayText" VerticalAlignment="Center" Foreground="Black">Loading deployments</TextBlock>
        </Grid>
    </Grid>
</UserControl>
